home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / qostnote.zip / AUTOSCRI.TEC < prev    next >
Text File  |  1990-07-03  |  6KB  |  152 lines

  1. ID:SC Automating DESQview with Scripts
  2. DESQview Technical Note
  3. by Bob Perry
  4.  
  5. HOW TO AUTOMATE DESQview - STARTUP SCRIPTS
  6.  
  7. Q.How can I automatically startup DESQview?
  8. Q.How can I configure DESQview to automatically startup all my
  9.     applications?
  10. Q.How can I configure DESQview so that when I open a window it
  11.     automatically loads the right file, or otherwise does
  12.     things in that application for me?
  13. Q.How can I integrate all of the above?
  14.  
  15.  
  16. First, you must have a version of DESQview which is 2.0 or 
  17. greater.  Assuming you have this, proceed as follows:
  18.  
  19. A fully automated DESQview involves three levels of automation:
  20.     1-Modification of your AUTOEXEC.BAT,
  21.     2-Creation of an auto startup script on the DESQview menu,
  22.     3-Creation of startup scripts for your applications.
  23.  
  24. Step One - Having your system load DESQview upon boot up.
  25.  
  26. By modifying your AUTOEXEC.BAT file, you can boot right
  27. into DESQview. This is our recommended procedure.  To do so, you
  28. only need to add two simple lines to this file:
  29.  
  30.     cd\dv
  31.     xdv
  32.  
  33. The first line changes directories to the DESQview directory, and the
  34. second line executes the program, you may have copied XDV to DV.
  35.  
  36. Step Two - Creating a startup script on the DESQview menu.
  37.     
  38. As described on page 89 of the DESQview version 2 manual,
  39. the special technique distinguishing a STARTUP script is the "!"
  40. exclamation point key.  This is done as follows:
  41.  
  42.     -Begin at the original DESQview Open Window menu, with no 
  43.         other programs open or running.
  44.  
  45.     -Hold down the Shift and tap your {DESQ} key, to enter 
  46.         the DESQview Learn menu.
  47.  
  48.     -At first menu, type "=" to Start a Script.
  49.  
  50.     -At the prompt "Press the key you want to redefine", 
  51.         Choose a key you want to define for the script.  If you 
  52.         don't want to "use up" any keys, try HOLDING DOWN the Alt 
  53.         key and then pressing a 3-digit number on the numeric 
  54.         keypad (try 2 5 0).  This will result in the "key" being 
  55.         {250}, key you will unlikely be typing.
  56.  
  57.     -The next menu asks you to name your script.  Begin the 
  58.         name of the script with the exclaimation point character 
  59.         "!".  The exclaimation point as the first character in 
  60.         the script name is the key which makes it an auto-start 
  61.         script.
  62.  
  63.     -FROM THIS POINT ONWARD, DESQview WILL BE "REMEMBERING" 
  64.         EACH KEYSTROKE YOU MAKE.
  65.  
  66. HINT: As with any DESQview script, use only the alpha-numeric 
  67. keyboard keys when you select from menus.  Do not use cursor keys 
  68. or try to teach your mouse a script!  Cursor keys are not as 
  69. reliable when selecting from menus and mouse movements and clicks 
  70. are not keystrokes and therefore cannot be learned in a "Keyboard 
  71. macro".
  72.  
  73.     -A typical pattern of keystrokes might go like this: 
  74.                 {DESQ} Open W P   (for a word processor)
  75.         {DESQ} Open L 2   (for Lotus 1-2-3, release 2)
  76.         {DESQ} Open D 1   (for DOS (128K) window)
  77.         {DESQ} Open D D   (for DESQview Datebook)
  78.         etc.
  79.     -When you've opened all your needed applications in the 
  80.         right sequence, hit Shift-{DESQ} again, and hit
  81.     the "-" key to Finish the script.
  82.  
  83.         -Now in order to have the script available on the next 
  84.         time you start DESQview, you must save it.  REMEMBER, 
  85.         scripts must be saved at the same level of DESQview as 
  86.         they were begun, so if this is the main DESQview auto-
  87.         start script, bring up the DESQview menu, hit Shift-Alt 
  88.         to bring up the Learn menu, hit "S" for Save and save to 
  89.         the default DESQVIEW.DVS file.
  90.  
  91. Now when your AUTOEXEC.BAT file boots you directly into DESQview,
  92. DESQview will automatically launch your applications in exactly
  93. the order you want them opened.  
  94.  
  95. Note that if you have any startup scripts for your applications,
  96. your DESQview menu startup script will launch these as well!  See
  97. the next section on how to write such an application startup 
  98. script.
  99.  
  100. Step 3 - Writing a startup script for your applications.
  101.  
  102. With DESQview's powerful Learn feature you can "teach" any 
  103. application to perform the same series of keystrokes each and 
  104. every time that DESQview window is opened. This is particularly 
  105. useful for typing headers, loading a file, displaying application 
  106. directories, configuration alterations, and other routine 
  107. keystrokes that are repeated by the user each time the 
  108. application window is opened.
  109.  
  110.     -Begin by opening the application program in DESQview.
  111.  
  112.     -Depress the Shift and tap the {DESQ} key to enter the 
  113.         Learn menu.
  114.  
  115.     -At the first menu, choose "=" to Start Learning.
  116.  
  117.     -When the prompt "Press the key you want to redefine"
  118.     appears, select some obscure combination of keys that
  119.     you would never hit accidently.  Better yet, choose a
  120.     key that doesn't even exist, such as holding down the
  121.     right Alt key and typing 250 on your numeric keypad.
  122.  
  123.     -AT THE PROMPT FOR "SCRIPT NAME" BEGIN THE NAME WITH
  124.     THE "!" EXCLAMATION POINT CHARACTER.  As explained on
  125.     page 89 of the DESQview manual, this "!" exclamation
  126.     point triggers the automatic startup execution of all
  127.     the keystrokes that will follow. 
  128.  
  129. AS ABOVE, AVOID THE USE OF CURSOR KEYS, AND NO MOUSE BUTTONS PLEASE!
  130.  
  131.     -After performing the series of keystrokes that you
  132.     wish to use to automatically execute each time that
  133.     DESQview window is opened, you must again depress the
  134.     Shift and tap the {DESQ} key, and select the "-"
  135.     to Finish the Script.
  136.  
  137.         -Since the script was begun in the application window, 
  138.         bring up the Learn menu and save the script.
  139.  
  140. Now your system is fully automated using the DESQview automatic
  141. startup macro or Learn features described above.  Your machine
  142. will boot up and start DESQview for you automatically.  Then
  143. DESQview will launch your favorite applications for you with
  144. your DESQview menu startup script.  Finally, each application
  145. you open will perform the necessary keystrokes that you have
  146. dictated in your application startup script.  By the time you
  147. pour a cup of java and sit down at the keyboard, your machine
  148. will be custom-tuned to your specifications and ready for your
  149. work.
  150.         Copyright (C) 1990 by Quarterdeck Office Systems
  151.              * * *   E N D   O F   F I L E    * * * 
  152.